data = [23, 1, 3, 24, 5, 43, 1, -9]
min_value = data[0]

# 冒泡排序

index = 1
while index < len(data):
    if data[index] < min_value:
      min_value = data[index]
    index += 1

print(min_value)
print(len(data))